-- GENERATED SPELL FOR [Bonechewer Beastmaster] --


function spell0_17455(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(30635,pUnit)
pUnit:RegisterEvent('Sorts_17455', 560, 1)
end

function spell1_17455(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17455', 621, 1)
end

function Sorts_17455(pUnit, Event)
local choix_sorts_17455 = math.random(0, 1)
if choix_sorts_17455 == 0 then
pUnit:RegisterEvent('spell0_17455', 1, 1)
end
if choix_sorts_17455 == 1 then
pUnit:RegisterEvent('spell1_17455', 1, 1)
end
end

function mob17455_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17455', math.random(1500, 3000), 1)
end

function mob17455_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17455_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17455_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17455, 1, 'mob17455_Action')
RegisterUnitEvent(17455, 2, 'mob17455_Leave')
RegisterUnitEvent(17455, 3, 'mob17455_Kill')
RegisterUnitEvent(17455, 4, 'mob17455_Die')
